package com.itheima.practice;

import java.util.Scanner;

public class _06数字加密 {
    public static void main(String[] args) {
        int number;
        System.out.println("请输入大于0的数字进行加密");
        Scanner sc=new Scanner(System.in);
        number=sc.nextInt();
        int temp=number;
        int cnt=0;
        while(temp!=0){
            temp=temp/10;
            cnt++;
        }
//        System.out.println(cnt);
        int[] arr=new int[cnt];
        temp=number;
        for (int i = 0; i < arr.length; i++) {
            arr[i]=temp%10;
            temp=temp/10;
        }
//        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
//        }
        for (int i = 0; i < arr.length; i++) {
            arr[i]=arr[i]+5;
        }
        for (int i = 0; i < arr.length; i++) {
            arr[i]=arr[i]%10;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]);
        }
    }
}
